package com.qqt.csr.common.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * @author:
 * @date: 2024-06-28 10:33
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Accessors(chain = true)
@ToString
@Schema(description = "分页请求参数")
public class PageRequest<T> extends BaseRequest<T> {
    private static final long serialVersionUID = -2601779030880610492L;

    @Schema(description = "当前页数", requiredMode = Schema.RequiredMode.REQUIRED)
    @Builder.Default
    private long page = 1L;
    @Schema(description = "每页条数", requiredMode = Schema.RequiredMode.REQUIRED)
    @Builder.Default
    private long pageSize = 10L;
}
